<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../../public/common.jsp"%>
<body>
	<div style="margin-top: 10px; margin-left: 10px">
		<shiro:hasPermission name="backend_system_upms_user_add">
			<button id="addUser" class="layui-btn ">添加管理员用户</button>
		</shiro:hasPermission>
	</div>

	<table class="layui-table" id="userList" lay-filter="userList"></table>
	<script type="text/html" id="userBar">
  	<shiro:hasPermission name="backend_system_upms_user_edit">	
		<a class="layui-btn layui-btn-xs" lay-event="edit">修改用户</a>
	</shiro:hasPermission>

	<shiro:hasPermission name="backend_system_upms_user_delectUser">	
  		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除用户</a>
	</shiro:hasPermission>
	</script>
	
	<script type="text/html" id="statusTpl">	
  		<shiro:hasPermission name="backend_system_upms_user_disable">	
		 <input type="checkbox" name="lock" value="{{d.userId}}" title="锁定" lay-filter="status" {{ d.status == 0 ? 'checked' : '' }}>
		</shiro:hasPermission>	
	</script>
	<script type="text/html" id="iconTpl">
  		 
		<img src="{{d.avatar}}" style="width: 25px; height: 25px;" />
	</script>
	<script type="text/html" id="sexTpl">
  		{{#  if(d.sex == '1'){ }}
    			男
  		{{#  } else { }}
    			女
  		{{#  } }}
		</script>
</body>
<!-- 加载js文件-->
<script type="text/javascript" src="/LarryMS/common/layui/layui.js"></script>
<script type="text/javascript">
	layui.cache.page = 'system/upms/user/index';
	layui.config({
		version : "1.0.0",
		base : '/LarryMS/common/'
	}).extend({
		larry : 'js/base'
	}).use('larry');
</script>

</html>